#include "systick.h"


void SysTick_Delay_ms(uint32_t Nms)
{
	if(Nms>1863)Nms=1863;
	SysTick->CTRL=0;
	SysTick->LOAD=Nms*9000;
	SysTick->VAL=0;
	SysTick->CTRL=1;
	while(!(SysTick->CTRL & (1<<16)));
	SysTick->CTRL=0;
	SysTick->VAL=0;
}
